<div class="container">
  <header>
      <h1>DEMO1</h1>
      <%if(!user){%>
        <form class="" action="/users/login" method="post">
          <input type="text" name="loginname" placeholder="用户名"value="">
          <input type="password" name="password" placeholder="密码" value="">
          <img src="/users/loginvimg" alt=""><input type="text" name="vnum" value="验证码">
          <input type="submit" name="" value="登陆">
        </form>
        <a href="/register">注册</a>
      <%}else{%>
        <p><%=user.loginname%>已登录</p>
        <a href="/users/logout">退出</a>
      <%}%>
  </header>
  <nav>
    <a href="/">首页</a>
    <a href="/product">产品</a>
    <a href="/article">文章</a>
    <a href="/comment">留言</a>
    <a href="/socket">聊天室</a>
  </nav>
